package com.huirui.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huirui.server.pojo.entity.User;
import com.huirui.server.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author yujun
 * @description 针对表【t_user(用户表)】的数据库操作Mapper
 * @createDate 2025-09-14 10:48:11
 * @Entity com.huirui.server.pojo.entity.User
 */
public interface UserMapper extends BaseMapper<User> {

    IPage<UserVo> listUserByCondition(
            @Param("searchCondition") Integer searchCondition,
            @Param("searchField") String searchField,
            @Param("registrationStartDate") LocalDate registrationStartDate,
            @Param("registrationEndDate") LocalDate registrationEndDate,
            @Param("minimumConsumptionAmount") BigDecimal minimumConsumptionAmount,
            @Param("maximumConsumptionAmount") BigDecimal maximumConsumptionAmount,
            IPage<UserVo> iPage
    );
}




